package cn.com.db.dao;

import cn.com.db.model.Surface;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface SurfaceDao {

    void createSurface(Surface surface);

    Surface getSurfaceById(String id);

    List<Surface> getSurface(@Param("parent")String parent);

    Integer countSurface(@Param("parent")String parent);

    void update(Surface surface);

}
